package com.jcl.recruit.console.api.recruit;

import com.jcl.core.common.page.PageResult;
import com.jcl.core.resp.ApiResponse;
import com.jcl.recruit.console.recruit.service.ConsoleRecruitService;
import com.jcl.recruit.log.vo.LogPageCondition;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName ConsoleResumeController
 * @Author yyliu
 * @Date 2018/12/24 14:49
 * @Version 1.0
 **/
@RestController
@RequestMapping("/console/recruit")
public class ConsoleResumeController {

    @Autowired
    private ConsoleRecruitService consoleRecruitService;

    @PostMapping("/operate/pageList")
    public ApiResponse operatePageList(@RequestBody LogPageCondition condition) {
        PageResult result = consoleRecruitService.operatePageList(condition);
        return ApiResponse.success(result);
    }
}
